package csc.fresher.customannotation;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Documented
@Constraint(validatedBy = {UniqueLoginIdValidator.class})
@Target({ ElementType.METHOD, ElementType.FIELD })
@Retention(RUNTIME)
public @interface UniqueLoginId {

	String message() default "Username are exist";
	
	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default { };
}
